//
//  CircleView.h
//  ChartsDemo
//
//  Created by apple on 2021/3/29.
//

#import <UIKit/UIKit.h>
#import "ARTWathDataModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface CircleView : UIView

@property(nonatomic,strong) UILabel *titleLab;
@property(nonatomic,strong) UILabel *tipLab;
@property(nonatomic,strong) CAShapeLayer *circleLayer;
@property(nonatomic,strong) CAShapeLayer *progressLayer;

@property(nonatomic,strong) UILabel *leftLab;
@property(nonatomic,strong) UILabel *rightLab;

-(void)setPercent:(CGFloat)percent animated:(BOOL)animated;

-(void)setSleepPercent:(CGFloat)percent watchModel:(ARTWathDataModel *)model animated:(BOOL)animated;

- (void)setPercent:(CGFloat)percent color:(UIColor *)color animated:(BOOL)animated;

// 调整标题居中
- (void)adjustTitleLabCenter;

+ (UIColor *)spoColor:(NSInteger)testValue;

+ (UIColor *)prColor:(NSInteger)testValue;

@end

NS_ASSUME_NONNULL_END
